Skip to content

Conversation

@sgarg-CS
Copy link
Collaborator

@sgarg-CS sgarg-CS commented Sep 8, 2023

No description provided.

Copy link

@anup-cloudsufi anup-cloudsufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a unit test also.

s3.listBuckets();
} catch (AmazonS3Exception exception) {
collector.addFailure(String.format("Invalid credentials: %s.", exception.getMessage()),
"Please provide valid credentials.").withStacktrace(exception.getStackTrace());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it a common practice to add stackTrace in failureCollectors or adding stackTrace will only show in logs and not in UI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Albert suggested including the stack trace to the failure collector in order to show the detailed error message on the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants